// Copyright 2023 The titan Authors. All rights reserved.

// Project: titan
// IDE: GoLand
// Author: fucaihe@outlook.com
// File: md5.go
// Date: 2023/12/18 10:49:48
// Description: MD5算法

package md5

import (
	"crypto/md5"
	"encoding/hex"
)

func MD5(str string) string {
	hash := md5.Sum([]byte(str))
	return hex.EncodeToString(hash[:])
}
